
<div class="breadcrumb d-flex align-items-center px-3">
    <div class="btn btn-icon me-3 js-back" aria-label="返回" role="button" tabindex="0">
        <i class="iconfont icon-left-arrow"></i>
    </div>
    <h2 class="fs-18"><?= $user->username ?></h2>
</div>

<?php include '_user_edit.php' ?>

<div class="row p-4 lh-lg">
    <div class="col-12">
        <div class="row">
            <div class="col-4 text-muted text-right">用户名</div>
            <div class="col-8"><?= $user->username ?></div>
            <div class="col-4 text-muted text-right">注册时间</div>
            <div class="col-8"><?= date("Y-m-d", $user->created_at) ?></div>
            <div class="col-4 text-muted text-right">最后登录</div>
            <div class="col-8"><?= date("Y-m-d", $user->updated_at) ?></div>

            <hr class="border-top my-3">

            <div class="col-4 text-muted text-right">主题数</div>
            <div class="col-8"></div>
            <div class="col-4 text-muted text-right">回复数</div>
            <div class="col-8"></div>
            <div class="col-4 text-muted text-right">金币数</div>
            <div class="col-8"><?= $user->golds ?></div>

            <hr class="border-top my-3">

            <div class="col-4 text-muted text-right">用户组</div>
            <div class="col-8"></div>
            <div class="col-4 text-muted text-right">邮箱</div>
            <div class="col-8"></div>
        </div>
    </div>
</div>

<script>
    document.addEventListener("DOMContentLoaded", (e) => {
        // 当前链接添加 active
        highlightActiveLink("user");
        document.getElementById("my-info").classList.add('active');
    });
</script>